#include<iostream>

using namespace std;

class A{
  public:
    virtual void func(){
      cout<<"funcA()"<<endl;
    }
  int _a = 1;
};

class B : public A{
  public:
    virtual void func(){
      cout<<"funcB()"<<endl;
    }

    void func1(){
      cout<<"func1()"<<endl;
    }

    void func2(){
      cout<<"func2()"<<endl;
    }

};

void Func1(A&_aa){
  _aa.func();
}



void test1()
{
  A a;
  B b;

  Func1(a);
  Func1(b);
  
}

int main()
{
  //test1();
 
  A a;
  B b;
  return 0;
}
